<?
	if($do == 'main' && $act == 'cover')
	{
?>
<?
	include('cover.php');
?>
<?
	}
	else
	{
?>
<div id="container">
  <div class="header"> 
    <!--<div class="khai-mo"><img src="images/khai-mo.png" width="550" /></div>-->
    <div class="logo"><a href="/"><img src="<?=$FullUrl.CST_IMG?>logo.png" width="190"/></a></div>
    <div class="play">
    <?
    	if(isset($_COOKIE['username']) && $_COOKIE['username'] !=''){
	?>
    	<a href="<?=$FullUrl?>/index.php?do=player&act=logout"><span class="logout">&nbsp;</span></a> 
    <?
		}
		else{
	?>
    <a href="<?=$FullUrl?>/index.php?do=player&act=login"><span class="choi-ngay">&nbsp;</span></a> 
    <?
		}
	?>
    <?
    	if(isset($_COOKIE['username']) && $_COOKIE['username'] !=''){
	?>
    	<a href="<?=$FullUrl?>/index.php?do=player&act=chonserver"><span class="chon-server">&nbsp;</span></a>     
    <?
		}
		else{
	?>
    	<a href="<?=$FullUrl?>/index.php?do=player&act=register"><span class="dang-ky">&nbsp;</span> </a>
    <?
		}
	?>
    <a href="nap-the.php"><span class="nap-the">&nbsp;</span></a> </div>
    <div class="menu">
      <ul>
        <a href="http://www.facebook.com/pages/%C4%90ao-Ki%E1%BA%BFm-V%C3%B4-T%C3%ACnh-Online/316889155100550" target="_blank">
        <li class="last"><span>Facebook</span></li>
        </a> <a href="http://forum.daokiemvotinh.com/" target="_blank">
        <li><span>Forum</span></li>
        </a> <a href="http://diendan.daokiemvotinh.com/forum.php?mod=forumdisplay&fid=52" target="_blank">
        <li><span>Hướng Dẫn</span></li>
        </a> <a href="http://www.facebook.com/notes/%C4%91ao-ki%E1%BA%BFm-v%C3%B4-t%C3%ACnh-online/c%E1%BB%91t-truy%E1%BB%87n-game-%C4%91ao-ki%E1%BA%BFm-v%C3%B4-t%C3%ACnh-online/322546201201512" target="_blank">
        <li><span>Cốt Truyện</span></li>
        </a>
      </ul>
    </div>
  </div>
  <div class="content-main">
    <div class="bg-content-head">&nbsp; </div>
    <div class="bg-content-mid">
    <?
			$filename = './templates/modules/'.$do.'/'.$tpl.'.php';
			
			//echo $filename;			
			if(file_exists($filename)) 
				include($filename); 
			else
				print('This page is not available tpl');
	  ?>
      
    </div>
    <div class="bg-content-bottom">&nbsp;</div>
  </div>
</div>
<div class="footer">
  <div class="footer-content">
    <div class="coppy-right"> 2013 © Bản quyền thuộc về Đao Kiếm Vô Tình </div>
    <div class="top"><a href="#"><img src="<?=$FullUrl.CST_IMG?>top2.png" width="108"/></a></div>
    <div class="ho-tro"><a href="mailto:hotro@daokiemvotinh.com">Email: hotro@daokiemvotinh.com </a></div>
  </div>
</div>
<?
	}
?>
